-- GENERATED SPELL FOR [Giant Wetlands Crocolisk] --


function spell0_2089(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2089', 8000, 1)
end

function Sorts_2089(pUnit, Event)
local choix_sorts_2089 = math.random(0, 0)
if choix_sorts_2089 == 0 then
pUnit:RegisterEvent('spell0_2089', 1, 1)
end
end

function mob2089_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2089', math.random(1500, 3000), 1)
end

function mob2089_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2089_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2089_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2089, 1, 'mob2089_Action')
RegisterUnitEvent(2089, 2, 'mob2089_Leave')
RegisterUnitEvent(2089, 3, 'mob2089_Kill')
RegisterUnitEvent(2089, 4, 'mob2089_Die')
